<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
    <ul>
        <li><a href="#">首页</a></li>
        <li><a href="">新闻</a></li>
        <li><a href="">音乐</a></li>
        <li><a href="">视频</a></li>
        <li><a href="">关于</a></li>
    </ul>
</body>
<style>
ul{
    list-style-type: none;
   
}

a:link,a:visited{
    text-decoration: none;
    color: red;
}

a:hover, a:active{
    background-color: aqua;
    color:blue;
}

ul li{
    display: inline-block;
    width: 50px;
    height: 20px;
    float: left;

}

ul li:hover,ul li:active{
    background-color: aqua;
    

}

</style>
</html>